package com.netposa.datawarehouse.aggregator.portrait.model;

import java.io.Serializable;

public class PortraitCondition implements Serializable {
   private String commandType = "SearchAlarmLog";
   private String detectType = "Face";
   private String imagedata = "";
   private String imageurl;
   private CutInfo cutInfo;
   private String userToken;

   public String getCommandType() {
      return this.commandType;
   }

   public String getDetectType() {
      return this.detectType;
   }

   public String getImagedata() {
      return this.imagedata;
   }

   public String getImageurl() {
      return this.imageurl;
   }

   public CutInfo getCutInfo() {
      return this.cutInfo;
   }

   public String getUserToken() {
      return this.userToken;
   }

   public void setCommandType(String commandType) {
      this.commandType = commandType;
   }

   public void setDetectType(String detectType) {
      this.detectType = detectType;
   }

   public void setImagedata(String imagedata) {
      this.imagedata = imagedata;
   }

   public void setImageurl(String imageurl) {
      this.imageurl = imageurl;
   }

   public void setCutInfo(CutInfo cutInfo) {
      this.cutInfo = cutInfo;
   }

   public void setUserToken(String userToken) {
      this.userToken = userToken;
   }

   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof PortraitCondition)) {
         return false;
      } else {
         PortraitCondition other = (PortraitCondition)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            Object this$commandType = this.getCommandType();
            Object other$commandType = other.getCommandType();
            if (this$commandType == null) {
               if (other$commandType != null) {
                  return false;
               }
            } else if (!this$commandType.equals(other$commandType)) {
               return false;
            }

            Object this$detectType = this.getDetectType();
            Object other$detectType = other.getDetectType();
            if (this$detectType == null) {
               if (other$detectType != null) {
                  return false;
               }
            } else if (!this$detectType.equals(other$detectType)) {
               return false;
            }

            Object this$imagedata = this.getImagedata();
            Object other$imagedata = other.getImagedata();
            if (this$imagedata == null) {
               if (other$imagedata != null) {
                  return false;
               }
            } else if (!this$imagedata.equals(other$imagedata)) {
               return false;
            }

            label62: {
               Object this$imageurl = this.getImageurl();
               Object other$imageurl = other.getImageurl();
               if (this$imageurl == null) {
                  if (other$imageurl == null) {
                     break label62;
                  }
               } else if (this$imageurl.equals(other$imageurl)) {
                  break label62;
               }

               return false;
            }

            label55: {
               Object this$cutInfo = this.getCutInfo();
               Object other$cutInfo = other.getCutInfo();
               if (this$cutInfo == null) {
                  if (other$cutInfo == null) {
                     break label55;
                  }
               } else if (this$cutInfo.equals(other$cutInfo)) {
                  break label55;
               }

               return false;
            }

            Object this$userToken = this.getUserToken();
            Object other$userToken = other.getUserToken();
            if (this$userToken == null) {
               if (other$userToken != null) {
                  return false;
               }
            } else if (!this$userToken.equals(other$userToken)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(Object other) {
      return other instanceof PortraitCondition;
   }

   public int hashCode() {
      
      int result = 1;
      Object $commandType = this.getCommandType();
      result = result * 59 + ($commandType == null ? 43 : $commandType.hashCode());
      Object $detectType = this.getDetectType();
      result = result * 59 + ($detectType == null ? 43 : $detectType.hashCode());
      Object $imagedata = this.getImagedata();
      result = result * 59 + ($imagedata == null ? 43 : $imagedata.hashCode());
      Object $imageurl = this.getImageurl();
      result = result * 59 + ($imageurl == null ? 43 : $imageurl.hashCode());
      Object $cutInfo = this.getCutInfo();
      result = result * 59 + ($cutInfo == null ? 43 : $cutInfo.hashCode());
      Object $userToken = this.getUserToken();
      result = result * 59 + ($userToken == null ? 43 : $userToken.hashCode());
      return result;
   }

   public String toString() {
      return "PortraitCondition(commandType=" + this.getCommandType() + ", detectType=" + this.getDetectType() + ", imagedata=" + this.getImagedata() + ", imageurl=" + this.getImageurl() + ", cutInfo=" + this.getCutInfo() + ", userToken=" + this.getUserToken() + ")";
   }

   public static class CutInfo {
      private int left;
      private int right;
      private int bottom;
      private int top;
      private int confidence;

      public int getLeft() {
         return this.left;
      }

      public int getRight() {
         return this.right;
      }

      public int getBottom() {
         return this.bottom;
      }

      public int getTop() {
         return this.top;
      }

      public int getConfidence() {
         return this.confidence;
      }

      public void setLeft(int left) {
         this.left = left;
      }

      public void setRight(int right) {
         this.right = right;
      }

      public void setBottom(int bottom) {
         this.bottom = bottom;
      }

      public void setTop(int top) {
         this.top = top;
      }

      public void setConfidence(int confidence) {
         this.confidence = confidence;
      }

      public boolean equals(Object o) {
         if (o == this) {
            return true;
         } else if (!(o instanceof CutInfo)) {
            return false;
         } else {
            CutInfo other = (CutInfo)o;
            if (!other.canEqual(this)) {
               return false;
            } else if (this.getLeft() != other.getLeft()) {
               return false;
            } else if (this.getRight() != other.getRight()) {
               return false;
            } else if (this.getBottom() != other.getBottom()) {
               return false;
            } else if (this.getTop() != other.getTop()) {
               return false;
            } else {
               return this.getConfidence() == other.getConfidence();
            }
         }
      }

      protected boolean canEqual(Object other) {
         return other instanceof CutInfo;
      }

      public int hashCode() {
         
         int result = 1;
         result = result * 59 + this.getLeft();
         result = result * 59 + this.getRight();
         result = result * 59 + this.getBottom();
         result = result * 59 + this.getTop();
         result = result * 59 + this.getConfidence();
         return result;
      }

      public String toString() {
         return "PortraitCondition.CutInfo(left=" + this.getLeft() + ", right=" + this.getRight() + ", bottom=" + this.getBottom() + ", top=" + this.getTop() + ", confidence=" + this.getConfidence() + ")";
      }
   }
}
